package com.wcbtest.dem02.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel(description = "CPU信息")
public class CpuInfo {

    @ApiModelProperty(value = "用户空间CPU使用率百分比", example = "20.5")
    private double user;

    @ApiModelProperty(value = "系统空间CPU使用率百分比", example = "5.2")
    private double system;

    @ApiModelProperty(value = "空闲CPU百分比", example = "74.3")
    private double idle;

    @ApiModelProperty(value = "等待IO的CPU百分比", example = "0.0")
    private double iowait;

    @ApiModelProperty(value = "硬件中断CPU百分比", example = "0.0")
    private double irq;

    @ApiModelProperty(value = "软件中断CPU百分比", example = "0.0")
    private double softirq;

    @ApiModelProperty(value = "被偷走的CPU百分比(虚拟机)", example = "0.0")
    private double steal;

    @ApiModelProperty(value = "CPU核心数", example = "8")
    private int cpuCores;
}    